home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / sectools / fragrouter / Libnet-0.99b / test / libnet_test.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-07-26  |  904 b   |  33 lines

  1. /*
  2.  *  $Id: libnet_test.h,v 1.1.1.1 1999/05/18 15:33:42 dugsong Exp $
  3.  *
  4.  *  libnet_test.h
  5.  *
  6.  *  Copyright (c) 1998, 1999 Mike D. Schiffman <mike@infonexus.com>
  7.  *                           route|daemon9 <route@infonexus.com>
  8.  */
  9.  
  10. #ifndef __LIBNET_TEST_H
  11. #define __LIBNET_TEST_H
  12.  
  13. #include "../include/libnet.h"
  14.  
  15. u_char enet_src[6] = {0x0d, 0x0e, 0x0a, 0x0d, 0x00, 0x00};
  16. u_char enet_dst[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
  17. u_char ip_src[4]   = {0x0a, 0x00, 0x00, 0x01};
  18. u_char ip_dst[4]   = {0x0a, 0x00, 0x00, 0x02};
  19.  
  20. int send_arp(struct link_int *, u_char *);
  21. int libnet_do_arp(struct link_int *, u_char *, struct ether_addr *, u_long);
  22. int send_tcp(struct link_int *, u_char *, u_long, u_short, u_long, u_short);
  23. int send_icmp(struct link_int *, u_char *, u_long, u_long);
  24. void usage(u_char *);
  25.  
  26. #if (__linux__)
  27. #define      IPOPT_SECURITY  130
  28. #endif
  29.  
  30. #endif  /* __LIBNET_TEST_H */
  31.  
  32. /* EOF */
  33.